Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #65. This is a major refactor. Here are the highlights:
ragna.core._state
andragna.core._orm
were moved (and refactored) intoragna._cli
.ragna.core.Document
andragna.core.Source
.ragna.core.Source
s are generated by the selected source storage and thus we cannot make any assumptions on that other them being unique for a given source. Still, we want to link these sources to documents in our database for the REST API.ragna.core.SourceStorage.retrieve
now also takes the documents to make it easier to link theragna.core.Source
s to them. Although not relevant right now, this also enables the use case of having a central source storage that doesn't actually stores documents on user request, but only retrieves sources from pre-stored documents.ragna.core.RagnaId
was removed in favor of plainuuid.UUID
/close
endpoint when we are going to delete it afterwards anyway. I've renamed the/start
endpoint to/prepare
. You can now send a DELETE request to/chats/{id}
to delete a chat.